< previous page page_257 next page >

Page 257
12181-0257a.gif
Figure 9.19.
You can also display the data individually by
using Visual Basic's DAO features.
Adding an Index to a Table
The Table Structure dialog box also allows you to add, modify, or delete indexes for a table. Any indexes now in the table are displayed in the Index List at the bottom of the form (refer to Figure 9.11). To add a new index, click the Add Index button to display the Add Index dialog box (see Figure 9.20).
12181-0257b.gif
Figure 9.20.
The Add Index dialog box allows the
creation of table indexes.
To actually add the index, you need to enter an index name, and then select the fields you want included in the index by selecting them from the Available Fields list. As you select each field, they will be added to the Indexed Fields list in the order that you selected them. After defining the fields for the index, you can specify whether you want this index to be unique or to be the primary index for the table. After you properly define the index, click OK to save it.
Caution
You can't edit an index after it's created. To change an index requires you to delete it and re-create it.

 
< previous page page_257 next page >

If you like this book, buy it!